package com.zz.demo.entity;

import lombok.Getter;
import lombok.Setter;

public enum HttpResult {


    SUCCESS("请求成功", 1),
    FAIL("请求失败", 0);

    @Getter
    @Setter
    private Integer code;

    @Getter
    @Setter
    private String message;

    HttpResult(String message, Integer code) {
        this.code = code;
        this.message = message;
    }
}
